<template>
    <input type="text" v-model="msg" />
</template>

<script setup>
    import { useVModel } from "@vueuse/core";

    const emit = defineEmits(["update:modelValue"]);
    const props = defineProps({
        modelValue: {
            type: String,
            default: "",
        },
    });
    const msg = useVModel(props, "modelValue", emit);
</script>
<style lang="less" scoped>
</style>
